<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>使用 JavaScript 表达式</title>
    <script src="./vue.js"></script>
</head>

<body>
    <div id="app">
        <span>{{number + 1}}</span><br>
        <span>{{ok ? 'YES' : 'NO'}}</span><br>
        <span>{{message.split('').reverse().join('')}}</span>
        <div v-bind:id="'list-'+id">
            hahaha...
        </div>
    </div>
</body>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            number: 1,
            ok: true,
            message: 'Hello World!',
            id: 10
        }
    })
</script>

</html>